﻿using NaireSystem.Views;
using NaireSystem.Views.UserManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using TYControls;

namespace NaireSystem.Views
{
    /// <summary>
    /// ViewNaire.xaml 的交互逻辑
    /// </summary>
    public partial class ViewUserManager : TYWindow
    {
        public ViewUserManager()
        {
            InitializeComponent();
            this.Loaded += ViewNaire_Loaded;

        }

        private void ViewNaire_Loaded(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlNaireOverview();
        }

        //CtrlNaireOverview ctrlNaireOverview = new CtrlNaireOverview();
        //CtrlNaireQts ctrlNaireQts = new CtrlNaireQts();
        //CtrlNaireRecord ctrlNaireRecord = new CtrlNaireRecord();
        //CtrlNaireCreate ctrlNaireCreate = new CtrlNaireCreate();
        private void RadioButton_Overview(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlNaireOverview();
        }

        private void RadioButton_Qts(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlNaireQts();
        }

        private void RadioButton_Create(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlNaireCreate();
        }

        private void RadioButton_Record(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlNaireRecord();
        }

        private void RadioButton_DictManager(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlDictManager();
        }

        private void RadioButton_UserManager(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlUserManager();
        }

        private void RadioButton_ScheduleManager(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlScheduleManager();
        }

        private void RadioButton_QtsManager(object sender, RoutedEventArgs e)
        {
            ctrlContent.Content = new CtrlLearnQts();
        }
    }
}
